<?php
	global $_W,$_GPC;
	if($_W['role']&&$_W['isajax']){
		$hid = $_GPC['hid']=='1'?'0':'1';
		$id = $_GPC['gid'];
		$up = pdo_update('mii_ang_goods',array('ishot'=>$hid),array('id'=>$id));
		if($up){
			$code = json_encode(array('status'=>'1','msg'=>'操作成功'));
			exit($code);	
		}else{
			$code = json_encode(array('status'=>'2','msg'=>'操作失败'));
			exit($code);			
		}
	}else{
		$code = json_encode(array('status'=>'2','msg'=>'没有操作权限'));
		exit($code);
	}


?>